home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 6.7 KB | 228 lines | [TEXT/MPS ] |
- /*
- File: Devices.idl
-
- Contains: Device Manager Interfaces.
-
- Version: Technology: System 7.5 and 8
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
- #ifndef __DEVICES_IDL__
- #define __DEVICES_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef __OSUTILS_IDL__
- #include <OSUtils.idl>
- #endif
- #ifndef __FILES_IDL__
- #include <Files.idl>
- #endif
- #ifndef __QUICKDRAW_IDL__
- #include <Quickdraw.idl>
- #endif
- #ifndef __EVENTS_IDL__
- #include <Events.idl>
- #endif
- #if FOR_SYSTEM7_ONLY
- #ifndef __DIALOGS_IDL__
- #include <Dialogs.idl>
- #endif
- #endif
- #ifndef __KERNEL_IDL__
- #include <Kernel.idl>
- #endif
- #ifndef __NAMEREGISTRY_IDL__
- #include <NameRegistry.idl>
- #endif
- #ifndef __CODEFRAGMENTS_IDL__
- #include <CodeFragments.idl>
- #endif
- #ifndef __DRIVERFAMILYMATCHING_IDL__
- #include <DriverFamilyMatching.idl>
- #endif
- #ifndef __IOITERATOR_IDL__
- #include <IOIterator.idl>
- #endif
-
- #ifdef __SOMIDL__
-
- /* Values of the 'message' parameter to a Chooser device package */
- /* Values of the 'caller' parameter to a Chooser device package */
- /* Values of the 'message' parameter to a Control Panel 'cdev' */
- /* Special values a Control Panel 'cdev' can return */
- /* Values of the 'message' parameter to a Monitor 'mntr' */
- /* control codes for DeskAccessories */
- /* Control/Status Call Codes */
- /* miscellaneous Device Manager constants */
- /* flags used in the driver header and device control entry */
- /* run-time flags used in the device control entry */
- typedef SOMLargeStruct DRVRHeader; /* Derived from a struct of 19 bytes in size */
-
- typedef OpaquePtr DRVRHeaderPtr; /* Substituted OpaquePtr for “DRVRHeader*” */
-
- typedef OpaquePtr DRVRHeaderHandle; /* Substituted OpaquePtr for “DRVRHeaderPtr*” */
-
- #if FOR_SYSTEM7_ONLY
- typedef SOMLargeStruct DCtlEntry; /* Derived from a struct of 40 bytes in size */
-
- #else
- typedef SOMLargeStruct DCtlEntry; /* Derived from a struct of 40 bytes in size */
-
- #endif
- typedef OpaquePtr DCtlPtr; /* Substituted OpaquePtr for “DCtlEntry*” */
-
- typedef OpaquePtr DCtlHandle; /* Substituted OpaquePtr for “DCtlPtr*” */
-
- #if FOR_SYSTEM7_ONLY
- typedef SOMLargeStruct AuxDCE; /* Derived from a struct of 56 bytes in size */
-
- typedef OpaquePtr AuxDCEPtr; /* Substituted OpaquePtr for “AuxDCE*” */
-
- typedef OpaquePtr AuxDCEHandle; /* Substituted OpaquePtr for “AuxDCEPtr*” */
-
- #else
- typedef SOMLargeStruct AuxDCE; /* Derived from a struct of 56 bytes in size */
-
- typedef OpaquePtr AuxDCEPtr; /* Substituted OpaquePtr for “AuxDCE*” */
-
- typedef OpaquePtr AuxDCEHandle; /* Substituted OpaquePtr for “AuxDCEPtr*” */
-
- #endif
- /* The NDRV Driver IO Entry Point and Commands */
- typedef UInt16 UnitNumber;
-
- typedef UInt32 DriverOpenCount;
-
- typedef SInt16 DriverRefNum;
-
- typedef SInt16 DriverFlags;
-
- typedef UInt32 IOCommandCode;
-
- typedef OpaquePtr IOCommandID;
-
- typedef UInt32 IOCommandKind;
-
- typedef SOMLargeStruct DriverInitInfo; /* Derived from a struct of 18 bytes in size */
-
- typedef OpaquePtr DriverInitInfoPtr; /* Substituted OpaquePtr for “DriverInitInfo*” */
-
- typedef DriverInitInfo DriverReplaceInfo;
-
- typedef OpaquePtr DriverReplaceInfoPtr; /* Substituted OpaquePtr for “DriverInitInfo*” */
-
- typedef SOMLargeStruct DriverFinalInfo; /* Derived from a struct of 18 bytes in size */
-
- typedef OpaquePtr DriverFinalInfoPtr; /* Substituted OpaquePtr for “DriverFinalInfo*” */
-
- typedef DriverFinalInfo DriverSupersededInfo;
-
- typedef OpaquePtr DriverSupersededInfoPtr; /* Substituted OpaquePtr for “DriverFinalInfo*” */
-
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- /* Contents are command specific*/
- typedef SOMLargeStruct IOCommandContents; /* Derived from a struct of 20 bytes in size */
-
- #else
- typedef SOMLargeStruct IOParam; /* Derived from a struct of 50 bytes in size */
-
- typedef OpaquePtr IOParamPtr; /* Substituted OpaquePtr for “IOParam*” */
-
- typedef SOMLargeStruct CntrlParam; /* Derived from a struct of 50 bytes in size */
-
- typedef OpaquePtr CntrlParamPtr; /* Substituted OpaquePtr for “CntrlParam*” */
-
- typedef SOMLargeStruct ParamBlockRec; /* Derived from a struct of 100 bytes in size */
-
- typedef OpaquePtr ParmBlkPtr; /* Substituted OpaquePtr for “ParamBlockRec*” */
-
- typedef SOMLargeStruct IOCommandContents; /* Derived from a struct of 20 bytes in size */
-
- #endif
- typedef OpaquePtr DriverEntryPointPtr;
- /* Record to describe a file-based driver candidate */
- typedef SOMLargeStruct FileBasedDriverRecord; /* Derived from a struct of 110 bytes in size */
-
- typedef OpaquePtr FileBasedDriverRecordPtr; /* Substituted OpaquePtr for “FileBasedDriverRecord*” */
-
- /* Driver Loader API */
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #if FOR_SYSTEM7_ONLY
- #else
- #endif
- #endif
- #if !OLDROUTINELOCATIONS
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #endif
- #endif
- /* Control Panel Default Proc */
- #if FOR_SYSTEM7_ONLY
- typedef OpaquePtr ControlPanelDefProcPtr;
- typedef OpaquePtr ControlPanelDefUPP;
- #endif
- /*
- SetChooserAlert used to simply set a bit in a low-mem global
- to tell the Chooser not to display its warning message when
- the printer is changed. However, under MultiFinder and System 7,
- this low-mem is swapped out when a layer change occurs, and the
- Chooser never sees the change. It is obsolete, and completely
- unsupported on the PowerPC. 68K apps can still call it if they
- wish.
-
- */
- #if OLDROUTINENAMES && !GENERATINGCFM
- #endif
- /*
- Note: DrvrInstall() is no longer supported, becuase it never really worked anyways.
- There will soon be a DriverInstall() which does the right thing.
-
- DrvrRemove has been renamed to DriverRemove. But, InterfaceLib for PowerPC
- still exports DrvrRemove, so a macro is used to map the new name to old.
-
- */
- /*
- Shim mechnanism only exist in Copland world. A Shim is a translation layer
- and looks like a DRVR.
- */
- typedef OpaquePtr ShimEntryPoint;
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #endif
- #if CGLUESUPPORTED
- #endif
- #if OLDROUTINENAMES
- /*
- The PBxxx() routines are obsolete.
-
- Use the PBxxxSync(), PBxxxAsync(), or PBxxxImmed version instead.
- */
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #if !OLDROUTINELOCATIONS
- #endif
- #endif
- #endif
- #if FOR_SYSTEM8_PREEMPTIVE
- /*
- //////////////////////////////////////////////////////////////////////////////
- System 8 Ndrv requests entry point drivers
- */
- typedef SOMLargeStruct DeviceManagerIOIteratorData; /* Derived from a struct of 152 bytes in size */
-
- #endif
-
- #endif /* __SOMIDL__ */
-
- #endif /* __DEVICES_IDL__ */
-
-